#ifndef __MYRTC_H
#define __MYRTC_H

#include "stm32g4xx.h"                  // Device header
#include "rtc.h"

#include "stdbool.h"
#include "stdlib.h"
#include "stdio.h"

extern RTC_DateTypeDef MyRTC_Data;
extern RTC_TimeTypeDef MyRTC_Time;
extern RTC_TimeTypeDef MyRTC_SET_Time;
extern RTC_DateTypeDef MyRTC_SET_Data;

void MyRTC_Read(void);
void MyRTC_Set(void);

void RTC_proc(void);


extern uint16_t TriggerCntA;
extern uint16_t TriggerCntB;

#endif



